<ion-header>
    <ion-toolbar>
        <ion-buttons start>
            <button ion-button (click)="dismiss()">返回</button>
        </ion-buttons>
        <ion-title>
            明细信息
        </ion-title>
    </ion-toolbar>
</ion-header>
<ion-content class='task-detail'>
    <ion-card>
        <ion-list class="first-layer" *ngFor="let item of formatedItem">
            <ion-item (click)="checkIsSelected(item)">
                <ion-row>
                    <ion-col>{{item.name}}</ion-col>
                    <ion-col text-right>
                        <ion-icon *ngIf="!item.isShow" name="arrow-forward"></ion-icon>
                        <ion-icon *ngIf="item.isShow" name="arrow-down"></ion-icon>
                    </ion-col>
                </ion-row>
            </ion-item>
            <ion-item *ngFor="let data of item.list; let i = index;" [hidden]="!item.isShow">
                <ion-row>
                    <ion-col class="colName">{{data.key}}</ion-col>
                    <ion-col class="colVal" text-right>{{data.value}}</ion-col>
                </ion-row>
            </ion-item>
        </ion-list>
    </ion-card>
    <ion-item-divider class='list-no-more-tips' color="light" *ngIf="formatedItem.length < 1">暂无更多数据...</ion-item-divider>
</ion-content>
